//
//  HistoryGroupProvider.h
//  ZingBrowser
//
//  Created by -Xh- on 3/6/13.
//  Copyright (c) 2013 -Xh-. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "StaticVariables.h"

//this class provide history for each group.
//Ex: yesterday, 3 days ago, 1 month ago...
@interface HistoryGroupProvider : NSObject
typedef enum{
    Today=0,
    Yesterday=1,
    Last7Days=2,
    Last30Days=3
}HistoryGroupName;
//contain all the display name for later rendering process
@property (nonatomic) NSMutableArray* groupDisplayNameArray;
//each group has a dataList, this Array will contain all those dataList
@property (nonatomic) NSMutableArray* groupDataListArray;

//return the List of HistoryModel by the specific time point
-(NSMutableArray*)getDataListOf:(HistoryGroupName)_time;
//update all the list of each group from db
-(void)update;
-(void)relocalize;
-(void)updateSectionTitle;

@end
